package com.baoy.cloud.xxx.demo.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@Controller
public class DemoController {

    @ResponseBody
    @GetMapping("/hello")
    public String hello() {
        log.info("hello");
        return "hello baobao";
    }


    @GetMapping("/login")
    public String index2() {
        log.info("login...");
        return "login";
    }


    @GetMapping("/index")
    public String index() {
        log.info("index...");
        return "index";
    }
}
